#!/usr/bin/env python

# Invivo AI challenge simulation environment
# Copyright 2009 Simon Funk
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

"""This is just an example of how to run a Brain in a separate process.

First launch "run -c Brain01_Net" which will start up the simulator
waiting for a connection from a remote Brain.  (Or you may set
defaultController to "Brain01_Net" in LocalConfig.py and then just
launch "run".)

Then launch this file (run.remote) which will connect the Brain01_Test
controller to the simulator.  This version assumes the server is running
on the same machine (localhost), but you may pass a host to the Client
constructor if you wish to connect to a remote machine.

Some variation on this may be used for the final contest, TBD, but
in the meantime it is unlikely that you need this other than as
an example of connecting to the simulation over a socket [such as
if you are writing a client in a language other than python].
"""

from Brain01_Test import Controller
from Brain01_Net import Client

try:
	import psyco
	psyco.full()
except ImportError:
	print 'Note: Install Psyco to make this run faster.'

Client(Controller)

